import { createRouter, createWebHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    name: 'Register',
    component: ()=> import('@/view/auth/Register.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: ()=> import('@/view/auth/Login.vue')
  },
  // 新的登录页面路由
  {
    path: '/new-login',
    name: 'NewLogin',
    component: ()=> import('@/view/auth/NewLogin.vue')
  },
  {
    path: '/index',
    name: 'index',
    component: ()=> import('@/view/auth/success.vue')
  },
  {
    path: '/work',
    name: 'work',
    component: ()=> import('@/view/communicate/work.vue')
  }
  
  // {  
  //   path: '/test',
  //   name: 'Test',
  //   component: ()=> import('@/view/test/test.vue')

  // }
  // 这里可以添加更多路由
  // {
  //   path: '/dashboard',
  //   name: 'Dashboard',
  //   component: () => import('../view/Dashboard.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router